package org.xx.armory.spring5.mvc;

import org.xx.armory.commons.IntegerEnum;

public enum BookCategory
        implements IntegerEnum {
    LITERATURE(1),
    SCIENCE(2),
    HISTORY(3);

    private final int value;

    BookCategory(
            int value
    ) {
        this.value = value;
    }

    @Override
    public int value() {
        return this.value;
    }
}
